3.427 \(\int \sqrt {a x^j+b x^n} \, dx\)

Optimal. Leaf size=87 \[ \frac {2 x \sqrt {a x^j+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {n+2}{2 (j-n)};\frac {n+2}{2 j-2 n}+1;-\frac {a x^{j-n}}{b}\right )}{(n+2) \sqrt {\frac {a x^{j-n}}{b}+1}} \]

[Out]

2*x*hypergeom([-1/2, 1/2*(2+n)/(j-n)],[1+(2+n)/(2*j-2*n)],-a*x^(j-n)/b)*(a*x^j+b*x^n)^(1/2)/(2+n)/(1+a*x^(j-n)
/b)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2011, 365, 364} \[ \frac {2 x \sqrt {a x^j+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {n+2}{2 (j-n)};\frac {n+2}{2 j-2 n}+1;-\frac {a x^{j-n}}{b}\right )}{(n+2) \sqrt {\frac {a x^{j-n}}{b}+1}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[a*x^j + b*x^n],x]

[Out]

(2*x*Sqrt[a*x^j + b*x^n]*Hypergeometric2F1[-1/2, (2 + n)/(2*(j - n)), 1 + (2 + n)/(2*j - 2*n), -((a*x^(j - n))
/b)])/((2 + n)*Sqrt[1 + (a*x^(j - n))/b])

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 365

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[(a^IntPart[p]*(a + b*x^n)^FracPart[p])
/(1 + (b*x^n)/a)^FracPart[p], Int[(c*x)^m*(1 + (b*x^n)/a)^p, x], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[
p, 0] &&  !(ILtQ[p, 0] || GtQ[a, 0])

Rule 2011

Int[((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> Dist[(a*x^j + b*x^n)^FracPart[p]/(x^(j*FracPart[p
])*(a + b*x^(n - j))^FracPart[p]), Int[x^(j*p)*(a + b*x^(n - j))^p, x], x] /; FreeQ[{a, b, j, n, p}, x] &&  !I
ntegerQ[p] && NeQ[n, j] && PosQ[n - j]

Rubi steps

\begin {align*} \int \sqrt {a x^j+b x^n} \, dx &=\frac {\left (x^{-n/2} \sqrt {a x^j+b x^n}\right ) \int x^{n/2} \sqrt {b+a x^{j-n}} \, dx}{\sqrt {b+a x^{j-n}}}\\ &=\frac {\left (x^{-n/2} \sqrt {a x^j+b x^n}\right ) \int x^{n/2} \sqrt {1+\frac {a x^{j-n}}{b}} \, dx}{\sqrt {1+\frac {a x^{j-n}}{b}}}\\ &=\frac {2 x \sqrt {a x^j+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {2+n}{2 (j-n)};1+\frac {2+n}{2 j-2 n};-\frac {a x^{j-n}}{b}\right )}{(2+n) \sqrt {1+\frac {a x^{j-n}}{b}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.17, size = 134, normalized size = 1.54 \[ \frac {2 x \left (a (j-n) x^j \sqrt {\frac {a x^{j-n}}{b}+1} \, _2F_1\left (\frac {1}{2},\frac {2 j-n+2}{2 j-2 n};\frac {4 j-3 n+2}{2 j-2 n};-\frac {a x^{j-n}}{b}\right )-(2 j-n+2) \left (a x^j+b x^n\right )\right )}{(n+2) (-2 j+n-2) \sqrt {a x^j+b x^n}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a*x^j + b*x^n],x]

[Out]

(2*x*(-((2 + 2*j - n)*(a*x^j + b*x^n)) + a*(j - n)*x^j*Sqrt[1 + (a*x^(j - n))/b]*Hypergeometric2F1[1/2, (2 + 2
*j - n)/(2*j - 2*n), (2 + 4*j - 3*n)/(2*j - 2*n), -((a*x^(j - n))/b)]))/((2 + n)*(-2 - 2*j + n)*Sqrt[a*x^j + b
*x^n])

________________________________________________________________________________________

fricas [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^j+b*x^n)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a x^{j} + b x^{n}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^j+b*x^n)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(a*x^j + b*x^n), x)

________________________________________________________________________________________

maple [F]  time = 0.85, size = 0, normalized size = 0.00 \[ \int \sqrt {a \,x^{j}+b \,x^{n}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x^j+b*x^n)^(1/2),x)

[Out]

int((a*x^j+b*x^n)^(1/2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a x^{j} + b x^{n}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^j+b*x^n)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(a*x^j + b*x^n), x)

________________________________________________________________________________________

mupad [B]  time = 5.23, size = 82, normalized size = 0.94 \[ \frac {x\,\sqrt {a\,x^j+b\,x^n}\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{2},\frac {\frac {n}{2}+1}{j-n};\ \frac {\frac {n}{2}+1}{j-n}+1;\ -\frac {a\,x^{j-n}}{b}\right )}{\left (\frac {n}{2}+1\right )\,\sqrt {\frac {a\,x^{j-n}}{b}+1}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x^j + b*x^n)^(1/2),x)

[Out]

(x*(a*x^j + b*x^n)^(1/2)*hypergeom([-1/2, (n/2 + 1)/(j - n)], (n/2 + 1)/(j - n) + 1, -(a*x^(j - n))/b))/((n/2
+ 1)*((a*x^(j - n))/b + 1)^(1/2))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a x^{j} + b x^{n}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x**j+b*x**n)**(1/2),x)

[Out]

Integral(sqrt(a*x**j + b*x**n), x)

________________________________________________________________________________________